﻿<UserControl x:Class="Scrabble.Views.LexiconView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:Scrabble.Controls" 
             xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro" 
             mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300">
    <DockPanel>
        <local:SearchTextBox DockPanel.Dock="Top" LabelText="Search" CharacterCasing="Upper" 
            Text="{Binding SearchText, UpdateSourceTrigger=PropertyChanged}" 
            cal:Message.Attach="[Event Search] = [Action UpdateSearch]; [Event DropDownClicked] = [Action ToggleOptionsPopup]">
        </local:SearchTextBox>
        <ListBox x:Name="SearchResult" Margin="0,2,0,0" />
    </DockPanel>
</UserControl>
